		$(document).ready(function() {
			$(document).find("div.ad").each(function (i){
				var $obj = $(this);
				$position = $obj.attr("id");
				if($position){					
					$.ajax({
					type:"GET",
					url: "/media/"+$position+".html"
					}).done(function(data) {					
							$obj.html(data);
					});	
				}
			});
		});

